import requests
from bs4 import BeautifulSoup

if _name_=="_main_":
    url="http://data.sports.sohu.com/nba/nba_players_rank.php?order_by=points&spm=smpc.fb-nba-home.top-dc.2.1620824904040nf6byr7"
    header={
        "User-Agent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/64.0.3282.140 Safari/537.36 Edge/18.17763"
        }
    requests=requests.get(url=url,headers=headers)
    requests.encoding='utf-8'
    soup=BeautifulSoup(requests.txt,"lxml")
    rank=soup.select('.table01>tbody>tr>td')
    fp=open("ranking.txt","w",encoding='utf-8')
    for i in rank:
        
    
    
